package com.yigerende.management.service;

import com.yigerende.management.bean.CommonResult;
import org.json.JSONObject;

/**
 * 订单表业务接口
 * Created by 创建人 on 2023-11-07 14:22:00
 */
public interface OrderDinService {

    CommonResult createPreOrder(Long goodsId,Long userId);

    /**
     * 添加
     * @param request = {all in params by OrderDTO, ...}
     * return true or false
     */
    CommonResult create(JSONObject request);

    /**
     * 修改
     * @param request = {all in params by OrderDTO, ...}
     * return true or false
     */
    CommonResult modify(JSONObject request);

    /**
     * 分页查询
     * @param request = {all in params by Pagination, all in params by OrderDTO, ...}
     * return 结果与分页信息
     */
    CommonResult pageQuery(JSONObject request);

    /**
     * 根据ID查询
     * @param request = {id: $id, ...}
     * return 结果DO对象
     */
    CommonResult queryById(JSONObject request);

}
